package cn.befory.service.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.URL;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;


@ApiModel("生成短链接参数")
@Setter
@Getter
@Accessors(chain = true)
@Validated
public class GenerateUrlParam {
    @ApiModelProperty(value = "长连接")
    @NotBlank
    @URL
    private String longUrl;
}
